/** <a href="http://www.cpupk.com/decompiler">Eclipse Class Decompiler</a> plugin, Copyright (c) 2017 Chen Chao. **/
package com.asiainfo.utils.sql.sqlbuilder.select;

import com.asiainfo.utils.sql.sqlbuilder.Database;
import com.asiainfo.utils.sql.sqlbuilder.select.DefaultLimiter;
import com.asiainfo.utils.sql.sqlbuilder.select.HSQLDBLimiter;
import com.asiainfo.utils.sql.sqlbuilder.select.Limiter;
import com.asiainfo.utils.sql.sqlbuilder.select.MYSQLDBLimiter;
import com.asiainfo.utils.sql.sqlbuilder.select.OracleLimiter;

class LimiterFactory {
	LimiterFactory() {
	}

	Limiter create(Database database) {
		switch (database) {
		case MYSQL: {
			return new MYSQLDBLimiter();
		}
		case HSQLDB: {
			return new HSQLDBLimiter();
		}
		case ORACLE: {
			return new OracleLimiter();
		}
		}
		return new DefaultLimiter();
	}

}